package sy.service.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.log4j.Logger;

import sy.dao.SysAccountAppEquipmentMappingDaoI;
import sy.model.SysAccountAppEquipmentMapping;
import sy.model.SysProject;
import sy.service.SysAccountAppEquipmentMappingServiceI;

@Service("sysAccountAppEquipmentMappingService")
public class SysAccountAppEquipmentMappingServiceImpl implements SysAccountAppEquipmentMappingServiceI {
	
	private static final Logger logger = Logger.getLogger(SysAccountAppEquipmentMapping.class);
	@Autowired
	private SysAccountAppEquipmentMappingDaoI sysAccountAppEquipmentMappingDao;

	@Override
	public Serializable save(SysAccountAppEquipmentMapping sysAccountAppEquipmentMapping) {
		
		return sysAccountAppEquipmentMappingDao.save(sysAccountAppEquipmentMapping);
	}

	
	public void remove(String[] ids) {
		// TODO Auto-generated method stub
		for (int i = 0; i < ids.length; i++) {
			SysAccountAppEquipmentMapping sysAccountAppEquipmentMapping =	sysAccountAppEquipmentMappingDao.getSysAccountAppEquipmentMappingById(ids[i]);
			sysAccountAppEquipmentMappingDao.remove(sysAccountAppEquipmentMapping);
		}
	}


	@Override
	public void update(SysAccountAppEquipmentMapping sysAccountAppEquipmentMapping) {
		// TODO Auto-generated method stub
		sysAccountAppEquipmentMappingDao.update(sysAccountAppEquipmentMapping);
	}

	
	@Override
	public List<SysAccountAppEquipmentMapping> list() {
		// TODO Auto-generated method stub
		return sysAccountAppEquipmentMappingDao.list();
	}


	@Override
	public SysAccountAppEquipmentMapping getSysAccountAppEquipmentMappingById(
			String id) {
		// TODO Auto-generated method stub
		return sysAccountAppEquipmentMappingDao.getSysAccountAppEquipmentMappingById(id);
	}

	@Override
	public List<SysAccountAppEquipmentMapping> listSysAccountAppEquipmentMappingByKey(
			String key) {
		// TODO Auto-generated method stub
		return sysAccountAppEquipmentMappingDao.listSysAccountAppEquipmentMappingByKey(key);
	}



}
